package 常用api;

import java.io.IOException;

import static java.lang.System.currentTimeMillis;

public class 系统有关的api {
    public static void main(String[] args) throws IOException {
        Runtime r=Runtime.getRuntime();
        System.out.println(r.availableProcessors());
        System.out.println(currentTimeMillis()/1000/60/60/24/365);
        System.out.println(r.totalMemory());
        System.out.println(r.freeMemory());
        System.out.println(r.exec("D:\\work\\kuake\\sd-webui-aki(1)\\sd-webui-aki-v4.6.1\\sd-webui-aki-v4.6.1\\A绘世启动器.exe"));
    }
}
